/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.ufrgs.inf.prav.interop.jsf;

import br.ufrgs.inf.prav.interop.jsf.components.StyleComponent;
import javax.faces.component.UIComponent;

/**
 *
 * @author Fernando
 */
public class StyleTag extends PravBaseTag {

    private String type, media;


    public StyleTag(){
        
    }

    @Override
    public String getComponentType() {
        return StyleComponent.COMPONENT_TYPE;
    }

    @Override
    public String getRendererType() {
        return null;
    }

    @Override
    protected void setProperties(UIComponent component) {
        /* you have to call the super class */
        super.setProperties(component);
        StyleComponent style = (StyleComponent) component;
        style.setMedia(media);
        style.setType(type);
    }

    // <editor-fold defaultstate="collapsed" desc="Getters and Setters">
    public String getMedia() {
        return media;
    }

    public void setMedia(String media) {
        this.media = media;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    // </editor-fold>

}
